

        <g:set var="entityName" value="${message(code: 'user.label', default: 'User')}" />
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                            <g:sortableColumn property="username" title="${message(code: 'user.username.label', default: 'Username')}" />
                        
                            <g:sortableColumn property="userRealName" title="${message(code: 'user.userRealName.label', default: 'User Real Name')}" />
                        
                            
                        
                            <g:sortableColumn property="mobile" title="${message(code: 'user.mobile.label', default: 'Mobile')}" />
                        
                            <g:sortableColumn property="email" title="${message(code: 'user.email.label', default: 'Email')}" />
                        
                            <g:sortableColumn property="enabled" title="${message(code: 'user.enabled.label', default: 'Enabled')}" />
                            <th><g:message code="user.organize.label" default="Pass" /></th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${userInstanceList}" status="i" var="userInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="show" id="${userInstance.id}">${fieldValue(bean: userInstance, field: "username")}</g:link></td>
                        
                            <td>${fieldValue(bean: userInstance, field: "userRealName")}</td>
                         
                            <td>${fieldValue(bean: userInstance, field: "mobile")}</td>
                        
                            <td>${fieldValue(bean: userInstance, field: "email")}</td>
                        
                            <td><g:formatBoolean boolean="${userInstance.enabled}" /></td>
                            <td>${userInstance?.organize}</td>
                            <td class="operate">
                                <x:operate width="200">
                                    <g:link  action="edit" id="${userInstance.id}"><g:message code="default.button.edit.label" default="修改" /></g:link>
                                    <g:link  action="delete" id="${userInstance.id}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"><g:message code="default.button.delete.label" default="delete" /></g:link>
                                    <g:link  action="changePassword" controller="userLogic" id="${userInstance.id}">修改密码</g:link>
                                </x:operate>
                             </td>
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${userInstanceTotal}" />
            </div>
